//
//  main.c
//  Day.1test
//
//  Created by dllo on 16/5/5.
//  Copyright © 2016年 lanou. All rights reserved.
//

#include <stdio.h>

int main(int argc, const char * argv[]) {
  /*  //交换整形变量的值
    int a = 7;
    int b = 9;
    int temp = 0;
    
    temp = a;
    a = b;
    b = temp;
    
    
    return 0;
   */
    //输入宽和高,输出长方形的面积
    
    double weight = 0.0;
    double height = 0.0;
    printf("请输入宽和高,中间用逗号分隔  单位(米)\n");
    scanf("%lf,%lf", &weight, &height);
    
    printf("长方形的面积为:%.2lf平方米\n",weight * height);
    
}
